From ed3d9aaaed9c3ed491ed61273de10f6a4a86f663 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sun, 9 Jan 2022 07:27:59 +0000 Subject: [PATCH] meson: only update-icon-cache when the demos are built Without building the demos, nothing gets installed into $prefix/share/icons/hicolor. Which makes running `gtk4-update-icon-cache` on the machine causes an error. This is easily reproducible on a Windows machine with MSVC where there is nothing pre-installed on hicolor icon theme and that makes building gtk without the demos fails with "No such file or directory". --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f47c164bf0..90619713d5 100644 --- a/meson.build +++ b/meson.build @@ -897,7 +897,7 @@ if not meson.is_cross_build() gnome.post_install( glib_compile_schemas: true, gio_querymodules: gio_module_dirs, - gtk_update_icon_cache: true, + gtk_update_icon_cache: get_option('demos'), ) else meson.add_install_script('build-aux/meson/post-install.py', -- 2.30.2